<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入 vue.js 文件 -->
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 错误的做法：这里不可以使用mustache -->
        <!-- <img src="{{imgUrl}}" alt=""> -->

        <!-- 正确的做法：使用 v-bind 指令 -->
        <!-- v-bind:src 可以写成 :src -->
        <img v-bind:src="imgUrl" alt="">
        <a :href="aUrl">百度一下</a>
    </div>
    <script>
        new Vue({
            el: "#app",
            data: {
                imgUrl: "https://img10.360buyimg.com/seckillcms/s144x144_jfs/t1/160032/35/14753/204683/6056dd7aE4b5b64b8/6a78517beb5f703c.jpg!q70.jpg.webp",
                aUrl: "https://www.baidu.com"
            }
        });
    </script>
</body>

</html>